<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="vue">
    <input type="checkbox" v-model="checked" id="checkbox">
    <!--label "for" 属性可把 label 绑定到另外一个元素,label没有任何效果，主要就是绑定input标签-->
    <label for="checkbox">{{checked}}</label>
</div>

<script type="text/javascript">
    var vm = new Vue({
        el: '#vue',
        data: {
            checked: true
        }
    });
</script>
</body>
</html>